package com.ray.bean;

import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author : 李宇航
 * @Date: 2018/12/10 11:40
 * @Description: 记录每个用户每一天所使用的电度数和水度数
 */
@Data
public class DormUserUseRecord{
    /**
     * id
     */

    private Integer id;
    /**
     * 创建时间
     */
    private Timestamp createTime;
    /**
     * 修改时间
     */
    private Timestamp modifiedTime;
    /**
     * 宿舍id
     */
    private String dormId;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 用电量
     */
    private BigDecimal electricalUsage;
    /**
     * 插入该条记录时的用电度数
     */
    private BigDecimal electricalDegree;
    /**
     * 用水量
     */
    private BigDecimal waterMeterUsage;
    /**
     * 插入该条记录时的用水度数
     */
    private BigDecimal waterMeterDegree;

    public DormUserUseRecord() {
    }

    public DormUserUseRecord(String dormId, Integer userId, BigDecimal electricalUsage, BigDecimal electricalDegree,
                             BigDecimal waterMeterUsage, BigDecimal waterMeterDegree) {
        this.dormId = dormId;
        this.userId = userId;
        this.electricalUsage = electricalUsage;
        this.electricalDegree = electricalDegree;
        this.waterMeterUsage = waterMeterUsage;
        this.waterMeterDegree = waterMeterDegree;
    }
}
